<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions">

<head>
</head>

<ui:composition template="/templates/template.xhtml">

	<ui:define name="content">
		<h:form id="formEditor">

			<p:editor id="editor" widgetVar="editorWidget" value="#{emailFaces.text}" />

			<h:panelGrid columns="2" style="margin-top: 10px">
				<p:commandButton value="Submit" update="display"
					oncomplete="PF('dlg').show()" icon="ui-icon-disk" />

				<p:commandButton value="Limpar" type="button" onclick="PF('editorWidget').clear();" icon="ui-icon-close" />
			</h:panelGrid>

			<p:dialog header="Content" widgetVar="dlg" showEffect="fade"
				hideEffect="fade">
				<h:outputText id="display" value="#{emailFaces.text}" escape="false" />
			</p:dialog>



			<p:selectOneRadio layout="grid" columns="1">
				<f:selectItem itemLabel="Documento" />
				<f:selectItem itemLabel="Email" />
			</p:selectOneRadio>
			
			
			<h:outputText value="Para:" />
			<p:inputText></p:inputText>
			
			<h:outputText value="Assunto:" />
			<p:inputText></p:inputText>
			
			


			<p:editor>

			</p:editor>
		</h:form>
	</ui:define>
</ui:composition>
</html>